<?php
/**
 * Template Name: content-page-game  Template 
 */
?>
<?php get_header(); ?>
<div id="content">
    <?php if(have_posts()){ ?>
    <?php the_post();  ?>
    
    <div class="post" id="post-<?php the_ID(); ?>">
				<?php
				$temp = $wp_query;
				$wp_query= null;
				$wp_query = new WP_Query();
				$wp_query->query('category_name='.the_slug().'&showposts=15&paged='.$paged);
				while ($wp_query->have_posts()): $wp_query->the_post();
				?> 
						<div class="post odd" id="post-<?php the_ID(); ?>">
							<div class="title">
										<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" alt="<?php the_title(); ?>">
										<img src="<?php bloginfo('template_directory') ?>/images/download.gif"><?php the_title(); ?></a> - <?php if(function_exists('the_views')) { the_views(); } ?>
							</div>
						</div>						
        <?php endwhile; ?>
				<!-- then the pagination links -->
						<?php if(function_exists('wp_paginate')) { wp_paginate();} ?>	
    		<!--  List category game -->
		<?php include (TEMPLATEPATH.'/category-game.php');?>
		<!--  End List category game -->
    <?php }else{?>
    <div class="post" id="notfound">
         <p>
            Game không tồn tại
         </p>
    </div>
    <?php }?>
</div>
<?php get_footer(); ?>